<template>
    <view class="main">
        <view class="title">审核信息</view>
        <view class="time">{{ orderDetail.createTime }}</view>
        <view class="content" v-if="orderDetail.status == 2">提现申请失败，某条件未满足，建议完善资料重新提交 申请</view>
        <view class="content" v-if="orderDetail.status == 1">提现审核中</view>
        <view class="content" v-if="orderDetail.status == 0">提现申请成功</view>
    </view>
</template>

<script setup>
import { onLoad } from '@dcloudio/uni-app';
import { txDetail } from '@/api/apiList'
import { ref } from 'vue';

const id = ref('')
onLoad((option) => {
    console.log(12)
    id.value = option.id
    getOrder()
})

const show = ref(true)
const orderDetail = ref({})
const getOrder = async () => {
    const res = await txDetail(id.value)
    if (res.code == 200) {
        orderDetail.value = res.data
        show.value = false
    }
}
</script>

<style lang="scss" scoped>
.main {
    text-align: center;
    padding: 30rpx 64rpx;

    .title {
        font-family: PingFang-SC, PingFang-SC;
        font-weight: 500;
        font-size: 30rpx;
        color: #000000;
    }

    .time {
        font-family: PingFang-SC, PingFang-SC;
        font-weight: 500;
        font-size: 24rpx;
        color: #999999;
        margin: 20rpx 0 60rpx 0;
    }

    .content {
        font-family: PingFang-SC, PingFang-SC;
        font-weight: 500;
        font-size: 26rpx;
        color: #000000;
    }
}
</style>
